<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/3/20
 * Time: 18:13
 */
namespace app\admin\model;


class User extends BaseModel
{

    public function getUserList($page = '')
    {
        $this->count = $this->count();

        return $this->query('select id,name,FROM_UNIXTIME(create_time, "%Y-%m-%d %H:%i:%S") AS create_time,status,if(status,"启用","禁用") as statusMsg from user 
limit '.$this->getLimitStart($page).','.$this->limit);
    }
}